﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SeDuce.IDAL;
using System.Data;

namespace SeDuce.BLL
{
    public class BrandBLL
    {
        private static readonly IBrandDAL dal = SeDuce.DALFactory.DataAccess.CreateBrandDAL();

        public DataTable GetBrands()
        {
            return dal.GetBrands();
        }

        public DataTable GetBrandByBrandID(int brandID)
        {
            return dal.GetBrandByBrandID(brandID);
        }

        public bool UpdateBrand(SeDuce.Model.Brand brand)
        {
            return dal.UpdateBrand(brand);
        }

        public bool UpdateBrands(List<Model.Brand> brands)
        {
            return dal.UpdateBrands(brands);
        }

        public bool InsertBrand(SeDuce.Model.Brand brand)
        {
            return dal.InsertBrand(brand);
        }

        public bool DeleteBrand(int brandID)
        {
            return dal.DeleteBrand(brandID);
        }
    }
}
